﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class PhieuNhapBUS
    {
        public string TaoMaPNMoi()
        {
            PhieuNhapDAO dao = new PhieuNhapDAO();
            return dao.TaoMaPNMoi();
        }
        public int ThemPhieuNhap(PhieuNhapDTO pnDTO)
        {
            PhieuNhapDAO dao = new PhieuNhapDAO();
            return dao.ThemPhieuNhap(pnDTO);
        }
        public double BaoCaoTienChi(string Nam)
        {
            PhieuNhapDAO dao = new PhieuNhapDAO();
            return dao.BaoCaoTienChi(Nam);
        }
        public double BaoCaoTienChiThang(string Thang, string Nam)
        {
            PhieuNhapDAO dao = new PhieuNhapDAO();
            return dao.BaoCaoTienChiThang(Thang,Nam);
        }
        public List<PhieuNhapDTO> TheoDoiNhapHang(string Thang, string Nam)
        {
            PhieuNhapDAO dao = new PhieuNhapDAO();
            return dao.TheoDoiNhapHang(Thang, Nam);
        
        }
    }
}
